<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%@ taglib uri="http://www.springframework.org/tags" prefix="s"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>

<!DOCTYPE html>
<html lang="en">
<head>
<title><s:message code="app.title" /></title>
<%@ include file="Include.jsp"%>
<script type="text/javascript">
	
	$(document).ready(function() {
		$("#username").focus();	
	});
	
</script>
 <style type="text/css">
      body {
        padding-top: 40px;
        padding-bottom: 40px;
        background-color: #f5f5f5;
      }
    </style>
</head>
<body>
	<div class="container">
		<form:form class="form-signin" method="post" name="loginForm" id="loginForm" commandName="LoginForm"
	           modelAttribute="loginForm" >
			<h2 class="form-signin-heading"><s:message code="loginForm.header" /></h2>
			
			<%@ include file="Message.jsp"%>
			
			<form:label path="username"><s:message code="loginForm.username" /></form:label>
			<form:input path="username" cssClass="input-block-level" id="username"/>
				
			<form:label path="password"><s:message code="loginForm.password" /></form:label>
			<form:password path="password" cssClass="input-block-level" />
			
			<button class="btn btn-large btn-primary" type="submit" formaction="Login"><s:message code="loginForm.sigin" /></button>
		</form:form>
	</div>
</body>
</html>